package com.e1xp.deport_management_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.e1xp.deport_management_system.entity.Rack;
import com.e1xp.deport_management_system.exception.CustomException;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-04-09
 */
public interface IRackService extends IService<Rack> {

    long getCount(long instanceId);

    List<Rack> getList(long instanceId);

    boolean isRack(long instanceId, String rackName);

    boolean isRack(long instanceId, long rackId);

    void add(long instanceId, Rack rack) throws CustomException;

    void update(long instanceId, Rack rack) throws CustomException;

    void delete(long instanceId, long rackId) throws CustomException;

    Rack get(long instanceId, long rackId);

    List<Map<String, String>> getSelection(long instanceId);
}
